Skip to content

Conversation

@JonasWanke
Copy link

Closes: #40

The main change is that the native Android implementation now uses Snap Kit 2.1.0 instead of version 1.10.0. This is a breaking change because the meta-data tags in AndroidManifest.xml now use different names. The Creative Kit in the provided example app works fine (after modifying the Android application ID and Snapchat client ID), but logging in didn't work for me. I only get a generic error dialog stating that an error occurred: “Something went wrong. Please try again.” Maybe you have an idea of why this isn't working?

I added a changelog entry with a guide for users of this plugin. In addition, the wiki has to be updated:

BTW, I'd recommend changing the changelog's order from most recent to least recent, as that's far more common and users are likely most interested in the newer releases.

Additionally, I widened support for the http package since it recently had a new major release. The Dart code only contains minor modifications that made the code easier to read for me.

@William-McGonagle
Copy link

William-McGonagle commented Aug 24, 2023

@JonasWanke @TimmyRB
Is there anything I can do to help contribute? I am working on a Snapkit app and need a bunch of features.

@simplenotezy
Copy link

Hey @JonasWanke thanks for the PR. We've tried implementing it in our project (especially due to your http upgrade). However, doing androi build, fails with:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkReleaseAarMetadata'.
> Could not resolve all files for configuration ':app:releaseRuntimeClasspath'.
   > Could not find com.snapchat.kit.sdk:creative:1.13.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/snapchat/kit/sdk/creative/1.13.0/creative-1.13.0.pom
       - https://jcenter.bintray.com/com/snapchat/kit/sdk/creative/1.13.0/creative-1.13.0.pom
       - https://storage.googleapis.com/download.flutter.io/com/snapchat/kit/sdk/creative/1.13.0/creative-1.13.0.pom
       - https://repo.maven.apache.org/maven2/com/snapchat/kit/sdk/creative/1.13.0/creative-1.13.0.pom
       - https://www.jitpack.io/com/snapchat/kit/sdk/creative/1.13.0/creative-1.13.0.pom
     Required by:
         project :app
   > Could not find com.snapchat.kit.sdk:login:1.13.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/snapchat/kit/sdk/login/1.13.0/login-1.13.0.pom
       - https://jcenter.bintray.com/com/snapchat/kit/sdk/login/1.13.0/login-1.13.0.pom
       - https://storage.googleapis.com/download.flutter.io/com/snapchat/kit/sdk/login/1.13.0/login-1.13.0.pom
       - https://repo.maven.apache.org/maven2/com/snapchat/kit/sdk/login/1.13.0/login-1.13.0.pom
       - https://www.jitpack.io/com/snapchat/kit/sdk/login/1.13.0/login-1.13.0.pom
     Required by:
         project :app
   > Could not find com.snapchat.kit.sdk:bitmoji:1.13.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/snapchat/kit/sdk/bitmoji/1.13.0/bitmoji-1.13.0.pom
       - https://jcenter.bintray.com/com/snapchat/kit/sdk/bitmoji/1.13.0/bitmoji-1.13.0.pom
       - https://storage.googleapis.com/download.flutter.io/com/snapchat/kit/sdk/bitmoji/1.13.0/bitmoji-1.13.0.pom
       - https://repo.maven.apache.org/maven2/com/snapchat/kit/sdk/bitmoji/1.13.0/bitmoji-1.13.0.pom
       - https://www.jitpack.io/com/snapchat/kit/sdk/bitmoji/1.13.0/bitmoji-1.13.0.pom
     Required by:
         project :app
   > Could not find com.snapchat.kit.sdk:core:1.13.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/snapchat/kit/sdk/core/1.13.0/core-1.13.0.pom
       - https://jcenter.bintray.com/com/snapchat/kit/sdk/core/1.13.0/core-1.13.0.pom
       - https://storage.googleapis.com/download.flutter.io/com/snapchat/kit/sdk/core/1.13.0/core-1.13.0.pom
       - https://repo.maven.apache.org/maven2/com/snapchat/kit/sdk/core/1.13.0/core-1.13.0.pom
       - https://www.jitpack.io/com/snapchat/kit/sdk/core/1.13.0/core-1.13.0.pom
     Required by:
         project :app

@JonasWanke
Copy link
Author

@simplenotezy That sounds like these four dependencies are still inside your module-level build.gradle file (android/app/build.gradle). Can you try removing them? With this PR, you no longer need to add native Android dependencies, and this package only adds dependencies on the newer versions com.snap.creativekit:creativekit:2.1.0 and com.snap.loginkit:loginkit:2.1.0

@JonasWanke JonasWanke changed the title Update Snap Kit on to v2.1.0 Update Snap Kit on Android to v2.1.0 Oct 30, 2023
@simplenotezy
Copy link

@simplenotezy That sounds like these four dependencies are still inside your module-level build.gradle file (android/app/build.gradle). Can you try removing them? With this PR, you no longer need to add native Android dependencies, and this package only adds dependencies on the newer versions com.snap.creativekit:creativekit:2.1.0 and com.snap.loginkit:loginkit:2.1.0

You were right, missed that. Thanks!

@simplenotezy
Copy link

By the way, not sure if you are using the "share link" functionality @JonasWanke - but did you notice that Snapchat silently removed support for this from day-to-day a few months back? All of a sudden our embedded links in shared posts wouldn't work and I noticed the same happened to bigger players such as BeReal and other apps using that feature.

@JonasWanke
Copy link
Author

@simplenotezy No, I mostly focused on the Snapchat installation check and basic media sharing, which are the only things we're currently using

@coolpistachio
Copy link

@JonasWanke @TimmyRB are there any plans to review/merge this PR? It would make things a lot easier for folks that want to keep using this library for Snapchat integration.

@TimmyRB
Copy link
Owner

TimmyRB commented Feb 8, 2024

Hi @JonasWanke, thanks for the great work! I'm currently in the process recreating this package since so much has changed with both Flutter and the SnapSDK since I first created this plugin. I've merged your changes into snapkit-refresh-and-fixes which will be the 3.0.0 release of this plugin using SnapSDK 2.5.0 on iOS and 2.1.0 on Android. I've completed the iOS side of things and am now moving onto Android where I plan to migrate both my code and your new code from Java to Kotlin.

If you'd like to test out the new version before it releases, you can do so like this in your project's pubspec.yaml

snapkit:
       git:
         url: git://github.com/TimmyRB/snapkit.git
         ref: snapkit-refresh-and-fixes

Though it only contains new iOS and Dart code at this moment, I will update this comment when that changes.

I have created PR #50 to track progress

@TimmyRB TimmyRB closed this Feb 8, 2024
@TimmyRB
Copy link
Owner

TimmyRB commented Feb 12, 2024

Quick update: I have updated the native Android side of things and the CreativeKit works great and adds sharing with video back to Android, however LoginKit isn't working at the moment for some unknown reason, I'm looking into it at the moment but Snapchat's error messages aren't exactly the most descriptive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build / sharing does not work targeting Android 31+

5 participants